#ifndef WEB_H
#define WEB_H

#include <QThread>
#include <QCoreApplication>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QUrl>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonArray>

class Web: public QObject
{
    Q_OBJECT
public:
    Web();
    ~Web();
    QJsonObject auth;
    QJsonObject user;
    QJsonObject pos;
    QString token;
    QString username = "tttbbb999";
    QString password = "123456";
    QString host = "http://192.168.1.216:8100";
    QNetworkAccessManager manager;
    void doLogin();
    void hasMyPos();
private:

};

#endif // WEB_H
